import sys
import time
from datetime import datetime

from PyQt5 import QtNetwork, QtCore, QtWidgets
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QTextCursor


class MessageProcessingMainSwitch(QtWidgets.QWidget):
    """报文处理部分"""

    def __init__(self, parent=None):
        super(MessageProcessingMainSwitch, self).__init__(parent)

        self.msg_box = QtWidgets.QCheckBox()
        self.msg_box.setText("是否处理报文")
        self.msg_box.setChecked(False)

        layout = QtWidgets.QVBoxLayout()
        layout.addWidget(QtWidgets.QLabel("报文处理部分："))
        layout.addWidget(self.msg_box)
        self.setLayout(layout)
        # self.msg_box.clicked.connect(self.processing_messages)

    # def processing_messages(self):
    #     """
    #     处理报文
    #     :return:
    #     """
    #     if self.msg_box:
